package cn.decorate.service.impl;

import java.sql.Date;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.transaction.annotation.Transactional;

import cn.decorate.bean.Department;
import cn.decorate.bean.Group;
import cn.decorate.bean.Staffer;
import cn.decorate.service.StafferService;

/**
 * 
 * @author 张朝斌 职员业务具体实现类
 * 
 */
@Transactional
public class StafferServiceBean implements StafferService {
	@Resource
	private SessionFactory sessionFactory;

	public void save(Staffer staffer) {
		sessionFactory.getCurrentSession().persist(staffer);
	}

	public void update(Staffer staffer) {
		sessionFactory.getCurrentSession().merge(staffer);
	}

	public Staffer getStafferCode(String code) {
		// TODO Auto-generated method stub
		return null;
	}

	public Staffer getStafferName(String name) {
		// TODO Auto-generated method stub
		return null;
	}

	public Staffer getStafferDerpart(Department depart) {
		// TODO Auto-generated method stub
		return null;
	}

	public Staffer getStafferGroup(Group group) {
		// TODO Auto-generated method stub
		return null;
	}

	public Staffer getStafferDate(Date date) {
		// TODO Auto-generated method stub
		return null;
	}

}
